[INFO] cloning repository https://github.com/hubefonseca/rsa
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hubefonseca/rsa" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhubefonseca%2Frsa", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhubefonseca%2Frsa'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] fb7de9920a04210ca49caa968adcdcad0b8f3fce
[INFO] building hubefonseca/rsa against master#881c1ac408d93bb7adaa3a51dabab9266e82eee8 for issue-85264
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhubefonseca%2Frsa" "/workspace/builds/worker-13/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/hubefonseca/rsa on toolchain 881c1ac408d93bb7adaa3a51dabab9266e82eee8
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/hubefonseca/rsa
[INFO] finished tweaking git repo https://github.com/hubefonseca/rsa
[INFO] tweaked toml for git repo https://github.com/hubefonseca/rsa written to /workspace/builds/worker-13/source/Cargo.toml
[INFO] crate git repo https://github.com/hubefonseca/rsa already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded num-bigint v0.1.43
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 74d160bc4be6afffe237cb73d328cf0033af37761d067343c90a671f52db7495
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "74d160bc4be6afffe237cb73d328cf0033af37761d067343c90a671f52db7495", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "74d160bc4be6afffe237cb73d328cf0033af37761d067343c90a671f52db7495", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "74d160bc4be6afffe237cb73d328cf0033af37761d067343c90a671f52db7495", kill_on_drop: false }`
[INFO] [stdout] 74d160bc4be6afffe237cb73d328cf0033af37761d067343c90a671f52db7495
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+881c1ac408d93bb7adaa3a51dabab9266e82eee8" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7f9784c1f4b3879764d9e784296c7d5f615e05663d2388672346ed56de2b34a5
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "7f9784c1f4b3879764d9e784296c7d5f615e05663d2388672346ed56de2b34a5", kill_on_drop: false }`
[INFO] [stderr]    Compiling num-traits v0.2.2
[INFO] [stderr]    Compiling libc v0.2.39
[INFO] [stderr]    Compiling rustc-serialize v0.3.24
[INFO] [stderr]    Compiling rand v0.4.2
[INFO] [stderr]    Compiling num-integer v0.1.36
[INFO] [stderr]    Compiling num-iter v0.1.35
[INFO] [stderr]    Compiling num-bigint v0.1.43
[INFO] [stderr]    Compiling num-complex v0.1.43
[INFO] [stderr]    Compiling num-rational v0.1.42
[INFO] [stderr]    Compiling num v0.1.42
[INFO] [stderr]    Compiling rsa v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `gcd`
[INFO] [stdout]  --> src/lib.rs:6:24
[INFO] [stdout]   |
[INFO] [stdout] 6 | use num::integer::{lcm,gcd};
[INFO] [stdout]   |                        ^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `numbers::modinverse`
[INFO] [stdout]   --> src/lib.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use numbers::modinverse;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ToBigInt`
[INFO] [stdout]  --> src/primes.rs:3:31
[INFO] [stdout]   |
[INFO] [stdout] 3 | use num::bigint::{RandBigInt, ToBigInt};
[INFO] [stdout]   |                               ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num::bigint::ToBigInt`
[INFO] [stdout]  --> src/numbers.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use num::bigint::ToBigInt;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `num::Integer`
[INFO] [stdout]  --> src/numbers.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use num::Integer;
[INFO] [stdout]   |     ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `CheckedSub`
[INFO] [stdout]  --> src/lib.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | use num::{BigInt, CheckedSub};
[INFO] [stdout]   |                   ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `p` is never read
[INFO] [stdout]   --> src/lib.rs:57:13
[INFO] [stdout]    |
[INFO] [stdout] 57 |     let mut p: BigInt = One::one();
[INFO] [stdout]    |             ^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/primes.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     for i in 0..10 {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `limit`
[INFO] [stdout]   --> src/primes.rs:15:37
[INFO] [stdout]    |
[INFO] [stdout] 15 | fn miller_rabin(candidate: &BigInt, limit: usize) -> bool {
[INFO] [stdout]    |                                     ^^^^^ help: if this is intentional, prefix it with an underscore: `_limit`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*b` which is behind a shared reference
[INFO] [stdout]   --> src/numbers.rs:12:17
[INFO] [stdout]    |
[INFO] [stdout] 12 |         return (*b, zero, one);
[INFO] [stdout]    |                 ^^ move occurs because `*b` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*b` which is behind a shared reference
[INFO] [stdout]   --> src/numbers.rs:15:25
[INFO] [stdout]    |
[INFO] [stdout] 15 |         return (g, y - (*b / *a) * x, x);
[INFO] [stdout]    |                         ^^ move occurs because `*b` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*a` which is behind a shared reference
[INFO] [stdout]   --> src/numbers.rs:15:30
[INFO] [stdout]    |
[INFO] [stdout] 15 |         return (g, y - (*b / *a) * x, x);
[INFO] [stdout]    |                              ^^ move occurs because `*a` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `x`
[INFO] [stdout]   --> src/numbers.rs:15:39
[INFO] [stdout]    |
[INFO] [stdout] 14 |         let (g, x, y) = egcd(&(b % a), a);
[INFO] [stdout]    |                 - move occurs because `x` has type `BigInt`, which does not implement the `Copy` trait
[INFO] [stdout] 15 |         return (g, y - (*b / *a) * x, x);
[INFO] [stdout]    |                                    -  ^ value used here after move
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    value moved here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors; 9 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0507.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rsa`
[INFO] [stderr] 
[INFO] [stderr] To learn more, run the command again with --verbose.
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: build failed
[INFO] running `Command { std: "docker" "inspect" "7f9784c1f4b3879764d9e784296c7d5f615e05663d2388672346ed56de2b34a5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7f9784c1f4b3879764d9e784296c7d5f615e05663d2388672346ed56de2b34a5", kill_on_drop: false }`
[INFO] [stdout] 7f9784c1f4b3879764d9e784296c7d5f615e05663d2388672346ed56de2b34a5
